package com.neshai.webapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
@TableName("ethereum_transaction")
public class EthereumTransaction {

    @TableId(value = "hash")
    private String hash;

    private Integer userId;

    private byte isSuccess;

    @TableField("block_hash")
    private String blockHash;

    @TableField("block_number")
    private BigInteger blockNumber;

    @TableField("sender_address")
    private String senderAddress;

    @TableField("recipient_address")
    private String recipientAddress;

    @TableField("value")
    private BigInteger value;

    private LocalDateTime createdAt;

}